package org.dei.perla.sys.device.channel.concrete.serial;

import java.util.ArrayList;

import org.dei.perla.sys.device.channel.Channel;
import org.dei.perla.sys.device.channel.ChannelManager;
import org.dei.perla.sys.device.channel.frame.FrameConfiguration;
import org.dei.perla.sys.device.channel.frame.address.FrameAddress;

/**
 * ChannelManager per canale seriale. E' un semplice wrapper al canale sottostante.
 *
 */
public class SerialChannelManager extends ChannelManager {

	/**
	 * Costruttore, inizializza un channel manager seriale
	 * @param parChannelId
	 * @param parName
	 * @param parChannel
	 * @param parFrameConfiguration
	 */
	public SerialChannelManager(int parChannelId, String parName, ArrayList<Channel> parChannel, FrameConfiguration parFrameConfiguration) {
		super(parChannelId, parName, parChannel, parFrameConfiguration);
	}

	@Override
	protected Channel pCreateChannel(FrameAddress parAddress) {
		// Mai chiamato, il canale seriale non viene mai disconnesso
		return null;
	}

}
